<template>
  <div class="typhoon-box">
    <div class="title">
      <span>实况台风信息</span>
      <i class="el-icon-close" @click="closeInfo"></i>
    </div>
    <div class="second">
      <div class="left">
        <span class="leftSpan"
          >编号:
          <span class="rightSpan"> {{ typhoonData.tcId }} </span>
        </span>
      </div>
      <div class="right">
        <span class="leftSpan">强度:</span>
        <span class="rightSpan"> {{ typhoonData.strong }} </span>
      </div>
    </div>

    <div class="third odd">
      <div class="left">
        <span class="leftSpan">名称:</span>
        <span class="rightSpan"> {{ typhoonData.tscName }} </span>
      </div>
    </div>
    <div class="third">
      <div class="left">
        <span class="leftSpan">时间:</span>
        <span class="rightSpan"> {{ typhoonData.time }} </span>
      </div>
    </div>
    <div class="third odd">
      <div class="left">
        <span class="leftSpan">位置:</span>
        <span class="rightSpan">
          东经:{{ typhoonData.lng }},北纬:{{ typhoonData.lat }}</span
        >
      </div>
    </div>
    <div class="second">
      <div class="left">
        <span class="leftSpan">气压:</span>
        <span class="rightSpan"> {{ typhoonData.pressure }}百帕 </span>
      </div>
      <div class="right">
        <span class="leftSpan">风力:</span>
        <span class="rightSpan"> {{ typhoonData.speed }}米/每秒 </span>
      </div>
    </div>
    <div class="second odd">
      <div class="left">
        <span class="leftSpan">6级风圈:</span>
        <span class="rightSpan"> {{ typhoonData.rr06 }} 公里 </span>
      </div>
      <div class="right">
        <span class="leftSpan">7级风圈</span>
        <span class="rightSpan"> {{ typhoonData.rr07 }} </span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TyphoonInfo',
  data() {
    return {}
  },
  props: {
    typhoonData: Object,
    closeInfo: Function
  },
  methods: {}
}
</script>
